Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using PolyLine and drawing less points. #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

clrnd
Copy link

@clrnd clrnd commented Nov 17, 2017

WaveEdit used 50% of my MacBook Pro 2015 CPU when completely idle.

The culprit was renderBankGrid which needs to draw so many lines (just commenting it
dropped usage to 13%).

Drawing only a fourth of the points and using AddPolyLine (which draws them all together),
I managed to get the CPU usage down to 20%.

(I know "CPU usage" is a weak measure, I did check v-sync-less framerate too)

This of course means the preview waves lose some resolution, so no hard feelings if you don't wanna merge this 😁

(I guess the "correct" way to do this is some kind of interpolation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant